﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.UI.Controls
{
    public static class ControlUtility
    {
        /// <summary>
        /// 判断是否处于设计状态
        /// </summary>
        public static bool DesignMode
        {
            get
            {
                bool returnFlag = false;
#if DEBUG
                if (System.Diagnostics.Process.GetCurrentProcess().ProcessName.Equals("DEVENV", StringComparison.OrdinalIgnoreCase))
                {
                    returnFlag = true;
                }
#endif
                return returnFlag;
            }
        }
    }
}
